package com.xydc.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

/**
 * Restaurant entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
public class Restaurant implements java.io.Serializable {

	// Fields

	private String id;
	private String mc;
	private String address;
	private String phone;
	private String gddh;
	private Long score;
	private String comment;

	// Constructors

	/** default constructor */
	public Restaurant() {
	}

	/** full constructor */
	public Restaurant(String mc, String address, String phone, String gddh,
			Long score, String comment) {
		this.mc = mc;
		this.address = address;
		this.phone = phone;
		this.gddh = gddh;
		this.score = score;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator="userinfo_id")
	@GenericGenerator(name="userinfo_id",strategy="uuid")
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMc() {
		return this.mc;
	}

	public void setMc(String mc) {
		this.mc = mc;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getGddh() {
		return this.gddh;
	}

	public void setGddh(String gddh) {
		this.gddh = gddh;
	}

	public Long getScore() {
		return this.score;
	}

	public void setScore(Long score) {
		this.score = score;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}